Will be used by the next commit to avoid going through the GObject
machinery when retrieving the scale factor.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1176
g_hash_table_add (context->nodes, g_object_ref (node));
return node;
}
+
+/**
+ * st_theme_context_get_scale_factor:
+ * @context: a #StThemeContext
+ *
+ * Return the current scale factor of @context.
+ *
+ * Return value: a scale factor
+ */
+int
+st_theme_context_get_scale_factor (StThemeContext *context)
+{
+ g_return_val_if_fail (ST_IS_THEME_CONTEXT (context), -1);
+
+ return context->scale_factor;
+}
StThemeNode * st_theme_context_intern_node (StThemeContext *context,
StThemeNode *node);
+int st_theme_context_get_scale_factor (StThemeContext *context);
+
G_END_DECLS
#endif /* __ST_THEME_CONTEXT_H__ */